package com.DosonLeung.homeschoolcommunication.Constant;

import org.json.JSONArray;

import java.util.ArrayList;

/**
 * Created by DosonLeung on 2014/10/21.
 */
public class UserConstant {
    public static String USER_NAME = "";
    public static String USER_TOKEN = "";
    public static String USER_CHARACTER = "";
    public static String USER_ID = "";//用户的uid
    public static String USER_SEX = "";
    public static String USER_ACCOUNT = "";//用户的账号
    public static String USER_CONTACT = "";
    public static String USER_CHILD_NAME = "";
    public static String USER_GRADIAN = "";
    public static String USER_SCHOOL = "南翔挖掘机学校";
    public static String USER_GRADE = "";
    public static String USER_PASSWORD = "";
    public static String USER_AVATAR_PATH = "";
    public static ArrayList<String> CLASS_ID_LIST = new ArrayList<String>();//用户所属班级的ID的数组
    public static ArrayList<String> CLASS_NAME_LIST = new ArrayList<String>();//用户所属的班级的名字数组
    public static JSONArray CLASS_LIST = new JSONArray();//所有班级列表的数组
    public static JSONArray SUBJECTLIST = new JSONArray();//所有的科目列表

    public static void clearUserConstant(){
        USER_CHARACTER="";
        USER_ID="";
        USER_TOKEN="";
        USER_NAME="";
        USER_SEX="";
        USER_CONTACT = "";
        USER_CHILD_NAME = "";
        USER_SCHOOL = "南翔挖掘机学校";
        USER_GRADE = "";
        USER_GRADIAN = "";
        USER_ACCOUNT = "";
        USER_PASSWORD="";
        USER_AVATAR_PATH = "";
        CLASS_LIST = new JSONArray();
        CLASS_ID_LIST.clear();
        CLASS_NAME_LIST.clear();
        SUBJECTLIST = new JSONArray();
        SystemConstant.clearAllRegister();
    }
}
